package com.sip.stream.gbstack.Model;

import com.google.gson.annotations.SerializedName;
import org.json.JSONException;
import org.json.JSONObject;

public class GS28181AlarmNotifyConfig {

    @SerializedName("czAlarmType")
    private String czAlarmType;

    @SerializedName("czDeivceID")
    private String czDeivceID;

    @SerializedName("czEndPriority")
    private String czEndPriority;

    @SerializedName("czEndTime")
    private String czEndTime;

    @SerializedName("czMethod")
    private String czMethod;

    @SerializedName("czStartPriority")
    private String czStartPriority;

    @SerializedName("czStartTime")
    private String czStartTime;

    @SerializedName("expireTime")
    private long expireTime = 0;

    @SerializedName("iExpires")
    private int iExpires;

    @SerializedName("iSubID")
    private int iSubID;

    public GS28181AlarmNotifyConfig(String data) {
        JSONObject jSONObject;
        this.iExpires = 0;
        this.iSubID = -1;
        try {
            jSONObject = new JSONObject(data);
        } catch (JSONException e) {
            e.printStackTrace();
            jSONObject = null;
        }
        try {
            this.iSubID = jSONObject.getInt("iSubID");
            this.iExpires = jSONObject.getInt("iExpires");
        } catch (JSONException e2) {
            e2.printStackTrace();
        }
        try {
            this.czDeivceID = jSONObject.getString("czDeivceID");
            this.czStartTime = jSONObject.getString("czStartTime");
            this.czEndTime = jSONObject.getString("czEndTime");
            this.czStartPriority = jSONObject.getString("czStartPriority");
            this.czEndPriority = jSONObject.getString("czEndPriority");
            this.czMethod = jSONObject.getString("czMethod");
            this.czAlarmType = jSONObject.getString("czAlarmType");
        } catch (JSONException e3) {
            e3.printStackTrace();
        }
    }

    public int getiSubID() {
        return this.iSubID;
    }

    public String getCzStartTime() {
        return this.czStartTime;
    }

    public void setCzStartTime(String czStartTime) {
        this.czStartTime = czStartTime;
    }

    public String getCzEndTime() {
        return this.czEndTime;
    }

    public String getCzStartPriority() {
        return this.czStartPriority;
    }

    public String getCzEndPriority() {
        return this.czEndPriority;
    }

    public String getCzMethod() {
        return this.czMethod;
    }

    public String getCzAlarmType() {
        return this.czAlarmType;
    }

    public int getiExpires() {
        return this.iExpires;
    }

    public void setiExpires(int i) {
        this.iExpires = i;
    }

    public long getExpireTime() {
        return this.expireTime;
    }

    public void setExpireTime(long expireTime) {
        this.expireTime = expireTime;
    }

    public String getCzDeivceID() {
        return this.czDeivceID;
    }
}
